using System.Windows.Media;

namespace DimensionsHelper.Client.Controls;

public static class ColorHelper
{
    
    public static readonly string[] DefaultColorList =
    [
        "#f44336",
        "#e91e63",
        "#9c27b0",
        "#673ab7",
        "#3f51b5",
        "#2196f3",
        "#03a9f4",
        "#00bcd4",
        "#009688",

        "#4caf50",
        "#8bc34a",
        "#cddc39",
        "#ffeb3b",
        "#ffc107",
        "#ff9800",
        "#ff5722",
        "#795548",
        "#9e9e9e"
    ];


    
    public static readonly Color[] ColorBounds =
    [
        Color.FromRgb(255, 0, 0),
        Color.FromRgb(255, 127, 0),
        Color.FromRgb(255, 255, 0),
        Color.FromRgb(127, 255, 0),
        Color.FromRgb(0, 255, 0),
        Color.FromRgb(0, 255, 127),
        Color.FromRgb(0, 255, 255),
        Color.FromRgb(0, 127, 255),
        Color.FromRgb(0, 0, 255),
        Color.FromRgb(127, 0, 255),
        Color.FromRgb(255, 0, 255),
        Color.FromRgb(255, 0, 127),
        Color.FromRgb(255, 0, 0)
    ];
    

    public static string ToHexName(Color color)
    {
        return $"#{color.A:X2}{color.R:X2}{color.G:X2}{color.B:X2}";
    }
    
    

}